package com.ruoyi.system.domain.wechat.request.vo;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 微信小程序用户注册表单VO
 *
 * @author jiexiang.sun/Jason
 * @version 1.0.0
 * @create 2022-03-04 12:56
 **/
@Data
public class WechatUserRegisterVO extends BaseEntity {

    @NotBlank(message = "请输入手机号码")
    @Size(min = 11, max = 11, message = "请输入正确手机号码")
    @Positive(message = "请输入正确手机号码")
    private String phonenumber;

    @NotBlank(message = "请输入密码")
    private String password;

    @NotBlank(message = "请输入验证码")
    private String captcha;

    @NotEmpty(message = "请选择岗位职务")
    private List<Long> postIds;

}
